package edu.sdjzu.exam.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ExamDTO {
    private Long examId;
    private String title;
    private String description;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Integer durationMinutes;
    private Long createdBy;
    private Long courseId; // 所属课程ID
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private BigDecimal totalScore; // 试卷总分
    private List<ExamQuestionDTO> questions;

    @Data
    public static class ExamQuestionDTO {
        private Long examQuestionId;
        private Long questionId;
        private Integer questionOrder;
        private BigDecimal score; // 题目分值
        private QuestionDTO question; // 嵌套 QuestionDTO
    }
}